import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int a = sc.nextInt();
        System.out.println("请输入第二个数");
        int b = sc.nextInt();
        System.out.println("请输入要进行的运算1：加法 2：减法 3：乘法 4：除法");
        int c = sc.nextInt();

        switch (c){
            case 1:
                System.out.println(a + "+" + b + "=" + (a+b));
                break;
            case 2:
                System.out.println(a + "-" + b + "=" + (a-b));
                break;
            case 3:
                System.out.println(a + "*" + b + "=" + (a*b));
                break;
            case 4:
                System.out.println(a + "/" + b + "=" + (a/b));
                break;
            default:
                System.out.println("输入的运算方法有误");
                break;
        }

    }
}
